import {
	myRequest
} from "./apiRequest"
export const riderApi = {
	riderRenzheng: (data) => { //骑手登录
		return myRequest('api/user/loginqi', 'post', data)
	},
	getQiInfo: (data) => { //获取个人信息
		return myRequest('api/qiuser', 'get', data)
	},
	qiLoginOut: (data) => { //修改在线状态
		return myRequest('api/user/loginline', 'post', data)
	},
	getQiOrderList: (data) => { //订单列表
		return myRequest('api/order/qilist', 'get', data)
	},
	//收益和提现
	getIncome: (data) => { //获取记录
		return myRequest(`api/spread/commission/${data.type}`, 'get', data.data)
	},
	cashMoney: (data) => { //提现
		return myRequest(`api/extract/cash`, 'post', data)
	},
	//推广
	getTuiguangList: (data) => { //提现
		return myRequest(`api/spread/people`, 'post', data)
	},
	//骑手改变订单状态
	changeOrderStatus: (data) => {
		return myRequest('api/order/saveqi', 'post', data)
	},
	//获取推广码
	getQrcode: (data) => {
		return myRequest('api/spread/banner', 'get', {
			type: 1
		})
	},
}